package com.yhb.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SplittingFlow {
    private String id;
    private String userId;
    private Type type;

    @Builder.Default
    private BigDecimal splitting = BigDecimal.ZERO;

    @Builder.Default
    private BigDecimal amount = BigDecimal.ZERO;
    private String executionFlowId;

    @Builder.Default
    private Integer currentVipLevel = 0;
    private Date tradeTime;

    public enum Type {
        DIRECT, // 直营奖
        EXPANDING, // 推广奖
        MANAGING // 管理奖
    }
}
